﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Quizz.Infrastructure;
using Quizz.Library.Actions;
using Quizz.Library.Controller;

namespace Quizz.Web.FrontEnd.Controllers
{
    [HandleError]
    public class HomeController : BaseController
    {
        public ActionResult Index()
        {
            var homepageAction = new HomePageAction(this);
            homepageAction.ShowHomePage();
            
            return View();
        }

        protected override void OnResultExecuting(ResultExecutingContext filterContext)
        {
            base.OnResultExecuting(filterContext);

            CreateMenu(Constants.MenuHome);
        }
    }
}
